package com.gxa.p2p.mapper;

import com.gxa.p2p.pojo.Activity;
import com.gxa.p2p.pojo.Activitylog;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author R
 * @data 2021-10-27 10:02
 */
@Repository
public interface ActivityMapper {
    /**
     * 新人活动的查询和修改
     * @param page
     * @param size
     * @return
     */
    List<Activity> findNewActivityByPage(Integer page,Integer size);
    void updateNewActivity(Activity activity);

    /**
     * 签到活动查询和修改
     * @param page
     * @param size
     * @return
     */
    List<Activity> findSignActivityByPage(Integer page,Integer size);
    void updateSignActivity(Activity activity);

    /**
     * 邀请活动的查询和修改
     * @param page
     * @param size
     * @return
     */
    List<Activity> findInviteActivityByPage(Integer page,Integer size);
    void updateInviteActivity(Activity activity);

    /**
     * 查询邀请活动记录
     */
    List<Activitylog> findActivityLogByPage(String phone,String name,String event,Boolean state,String from,String to,Integer page,Integer size);
}
